// TicketTakerCustomerWhiteboard
//
// This class represents the whiteboard space for one customer-ticket taker interaction.
// It will be protected by a monitor and will be used by a head customer and ticket taker
// to transfer information.
//

#include "TicketTakerCustomerWhiteboard.h"
#include "system.h"

// Initialize the GroupData object
TicketTakerCustomerWhiteboard::TicketTakerCustomerWhiteboard() {
	ticketStub = NULL;
}

// De-allocate bitmap		
TicketTakerCustomerWhiteboard::~TicketTakerCustomerWhiteboard() {
	delete ticketStub;
}	

// returns the number of tickets requested by the customer
int TicketTakerCustomerWhiteboard::getNumTickets() {
	return ticketStub->getNumTickets();
}

// returns the theaterID of where the customers will go
int TicketTakerCustomerWhiteboard::getTheaterID() {
	return ticketStub->getTheaterID();
}	
// returns TicketStub given by customer
TicketStub* TicketTakerCustomerWhiteboard::getTicketStub() {
	return ticketStub;
}

// sets the number of tickets
void TicketTakerCustomerWhiteboard::setNumTickets(int num) {
	this->numTickets = num;
}

// sets the TicketStub given by the customer
void TicketTakerCustomerWhiteboard::setTicketStub(TicketStub* s) {
	this->ticketStub = s;
}
